package com.aiyige.page.pay.adapter;

import android.view.View;
import android.widget.TextView;

import com.aiyige.R;
import com.aiyige.page.publish.guarantee.model.GuaranteeItem;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;

import java.util.LinkedList;

import butterknife.BindView;
import butterknife.ButterKnife;

/**
 * Created by zhuyakun on 2018/1/30.
 */

public class GuaranteeAdapter extends BaseQuickAdapter<GuaranteeItem, GuaranteeAdapter.ViewHolder> {

    public GuaranteeAdapter() {
        super(R.layout.order_guarantee_item, new LinkedList<GuaranteeItem>());
    }

    @Override
    protected void convert(ViewHolder helper, GuaranteeItem item) {
        helper.bindData(item);
    }


    public class ViewHolder extends BaseViewHolder {
        @BindView(R.id.titleTv)
        TextView titleTv;

        public ViewHolder(View view) {
            super(view);
            ButterKnife.bind(this, view);
        }

        public void bindData(GuaranteeItem guaranteeItem) {
            titleTv.setText(guaranteeItem.getTitle());
        }
    }

}
